Skip to content

feat: add OpenRouter api#13

Merged
cubxxw merged 7 commits into
mainfrom
feat/cicd-optimize
Mar 10, 2025
Merged

feat: add OpenRouter api#13
cubxxw merged 7 commits into
mainfrom
feat/cicd-optimize

Conversation

@cubxxw

@cubxxw cubxxw commented Mar 10, 2025

Copy link
Copy Markdown
Member

This pull request introduces support for the OpenRouter AI provider, including configuration settings, API integration, and UI updates. The changes span multiple files to ensure seamless integration and functionality.

Key Changes:

Configuration and Environment:

  • Added OpenRouter configuration settings in .env.example to allow setting up API keys, base URL, site URL, site name, and additional models.

Backend Integration:

  • Enhanced proxy-server.js to include detailed logging and error handling for Huoshan API requests and responses.
  • Integrated OpenRouter API calls in aiService.ts, including methods for handling requests and responses, and added support for additional models via environment variables. [1] [2] [3] [4] [5]

Frontend Updates:

  • Updated AISettings.tsx to include new tabs and forms for configuring Huoshan, Qwen, and OpenRouter settings. [1] [2] [3]
  • Modified AddPromptModal.tsx to add OpenRouter models to the selectable options.

Type Definitions:

  • Updated index.ts to include new LLM models and AI providers for OpenRouter. [1] [2]

@cubxxw
cubxxw merged commit d2f7a54 into main Mar 10, 2025
@cubxxw
cubxxw deleted the feat/cicd-optimize branch March 10, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant